using System;
using System.Collections.Generic;
using System.Text;

namespace TaugeLibrary.Classes.Attributes
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public class AttTable : System.Attribute
    {
        string m_table_name;
        public string TableName { set { m_table_name = value; } get { return m_table_name; } }

        string m_alias="";
        public string Alias { set { m_alias = value; } get { if (m_alias == "") return m_table_name; else return m_alias; } }

        public AttTable(string p_tbl_name)
        {
            TableName = p_tbl_name;
        }
        public AttTable(string p_tbl_name, string p_alias_name)
        {
            TableName = p_tbl_name;
            Alias = p_alias_name;
        }
    }
}
